<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/19
  Time: 8:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>index</h1>
<%= session.getAttribute("msg")%>
<hr/>
<%--从4个作用域中依次往上找msg键的值
page--->request--->session---->application
--%>
<%--<h2>${msg}</h2>--%>
<h2>pageScope msg: ${pageScope.msg}</h2>
<h2>requestScope.msg: ${requestScope.msg}</h2>
<h2>sessionScope.msg:${sessionScope.msg}</h2>
<h2>applicationScope.msg.${applicationScope.msg}</h2>

<hr/>

<h2>${msg1}</h2>
<h2>${msg2}</h2>

<hr/>
<%= request.getParameter("msg")%>
</body>
</html>
